package com.hjh.thymeleafdemo1.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hjh.thymeleafdemo1.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserRepository extends BaseMapper<User>{
    public User findUserByUsrNameAndUsrPassword(String name, String password);

    @Select("select * from user where name = #{name}")
    public User getUserByName(@Param("name")String name);
}
